# -*- coding:utf-8 -*-
"""
manager URL Configuration
"""
from django.conf.urls import url, include
from django.contrib import admin
from . import views

urlpatterns = [
    url(r'^$', views.index, name='home'),
    # 用户登录
    url(r'login/$', views.login, name='login'),
    url(r'logout/$', views.logout, name='logout'),
    # 报表统计
    url(r'report/(?P<id>(\d+))/$', views.report, name='report'),
    url(r'report_income/$', views.report_income, name='report_income'),
    url(r'report_flow/$', views.report_flow, name='report_flow'),
    url(r'export/flow/$', views.export_flow, name='export_flow'),
    url(r'export/income/$', views.export_income, name='export_income'),
    # 业务流水
    url(r'events/$', views.events, name='events_list'),
    # API 接口
    url(r'coil_events$', views.coil, name='coil_events'),  # 读继电器信息
    url(r'coil_cmd$', views.coil_command, name='coil_cmd'),  # 写继电器信号
    url(r'inparking$', views.in_parking_list, name='inparking'),  # 入库记录
    url(r'outparking$', views.out_parking_list, name='outparking'),  # 出库记录
    url(r'spot$', views.payment_spot, name='outparking'),  # 付款记录
    url(r'result_error$', views.result_error_list, name='result_error'),  # 找未抵消的车牌，即有入库图片的
    url(r'makit$', views.makit, name='makit'),  # 去匹配车牌

    url(r'parkingmsg/$', views.Parking_msg),        #停车场基本信息
    url(r'parkingconfig/$', views.Parking_config),      #信息设置

]

